<template>
    <!-- 将element配置上国际化 -->
    <el-config-provider :locale="elementLocales[locale]">
      <router-view></router-view>
    </el-config-provider>
  </template>
    
  <script setup>
    import { elementLocales } from '@/i18n'
    const { locale } = useI18n();
    locale.value = localStorage.getItem('locale') || 'zh-cn';
  </script>